-record(rsc_factory, {open_fun,close_fun,destroy_fun}).